public class Test {
    public static void main(String[] args) {
        Check check = new Check();
        //测试数字串
        boolean test = check.isDigit("1234");
        System.out.println(test);
        System.out.println(check.isDigit("asdas"));
        //测试电话号码
        boolean test1 = check.isNumber("17324900373");
        System.out.println(test1);
        System.out.println(check.isNumber("22734529999"));
        //测试闰年
        check.isLeapyear("2024");
        System.out.println( check.isLeapyear("2022"));
        //测试时间日期类
        System.out.println(check.isDateTime("20241005060727"));
        System.out.println(check.isDate("20241005"));
        //测试身份证号
        System.out.println(check.isId("411522200311050013"));
        System.out.println(check.isId("41152220031105001x"));
        System.out.println(check.isId("a1152220031105001x"));
    }
}
